# 
# sfx examples
# 
# #############################################################################

# include_directories()
# CMAKE_SOURCE_DIR

set(app_demo_srcs ${app_demo_srcs}
    # 
    grib/_main.c
    grib/sfx_box.c
    grib/sfx_get_product_kind.c
    grib/sfx_grib_clone.c
    grib/sfx_grib_copy_message.c
    grib/sfx_grib_ensemble_index.c
    grib/sfx_grib_get_data.c
    grib/sfx_grib_get_keys.c
    grib/sfx_grib_index.c
    grib/sfx_grib_iterator.c
    grib/sfx_grib_iterator_bitmap.c
    grib/sfx_grib_keys_iterator.c
    grib/sfx_grib_list.c
    grib/sfx_grib_multi.c
    grib/sfx_grib_multi_write.c
    grib/sfx_grib_nearest_multiple.c
    grib/sfx_grib_nearest.c
    grib/sfx_set_missing.c
    grib/sfx_grib_precision.c
    grib/sfx_grib_print_data.c
    grib/sfx_grib_read_from_file.c
    grib/sfx_grib_sections_copy.c
    grib/sfx_grib_set_bitmap.c
    grib/sfx_grib_set_data.c
    grib/sfx_grib_set_keys.c
    grib/sfx_grib_set_pv.c

    grib/sfx_values_check.c
    grib/sfx_large_grib1.c
    grib/sfx_mars_param.c
    grib/sfx_multi2.c

    grib/sfx_string_util.c
)

set(app_tools_srcs ${app_tools_srcs}
    # tools/wind.c
)

set(_target "app_demo")
add_executable(${_target} ${app_demo_srcs} ${app_tools_srcs})
target_link_libraries(${_target} "eccodes")
target_include_directories(${_target} PRIVATE "../src")
